package com.glacier.cloud.ad.consumer;

import com.glacier.cloud.ad.consts.Constant;
import lombok.extern.slf4j.Slf4j;

import java.util.function.Consumer;

/**
 * date 2024-01-24 22:06
 *
 * @author glacier
 * @version 1.0
 */
@Slf4j
public class Demo2Consumer implements Consumer<String> {
    @Override
    public void accept(String str) {
        log.info("接收消息，topic：{}， 内容： {}", Constant.DEMO2, str);
    }
}
